//
//  UIView+MY.h
//  MiaoYin
//
//  Created by juweitu on 2020/3/3.
//  Copyright © 2020 thy. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (MY)

@property (nonatomic,readonly) UIView *redDotView;
@property (nonatomic,readonly) UILabel *redNumberLabel;

- (void)moveToHorizontal:(CGFloat)horizontal toVertical:(CGFloat)vertical;
- (void)addBouncesAnimation;

- (void)addRedDotView;
- (void)addRedNumberLabel;
- (void)setRedNumber:(NSUInteger)number;

///frame.origin.x的最大值
@property (nonatomic,readonly) CGFloat maxX;
///frame.origin.y的最大值
@property (nonatomic,readonly) CGFloat maxY;
///frame.origin.x
@property (nonatomic,assign) CGFloat x;
///frame.origin.y
@property (nonatomic,assign) CGFloat y;
///frame.size
@property (nonatomic,assign) CGSize size;

///bounds.size.width
@property (nonatomic,readonly) CGFloat boundsW;
@property (nonatomic,readonly) CGFloat boundsH;
@property (nonatomic,readonly) CGFloat boundsX;
@property (nonatomic,readonly) CGFloat boundsY;
#pragma mark 获取最上面的控制器
- (UIViewController*)currentViewController;
@end

NS_ASSUME_NONNULL_END
